import { createWebHistory, createRouter } from 'vue-router'
import home from '../vise/home/home.vue'
import login from '../vise/login.vue'
import my from '../vise/home/my.vue'
import lb from '../vise/home/lb.vue'
import xq from '../vise/home/xq.vue'
import Homelist from '../vise/home/homelist.vue'

const routes = [
    { path: '/', redirect: '/login' },
    {
        path: '/home', component: home,
        children: [
            {
                path: 'my',
                component: my
            },
            {
                path: 'lb',
                component: lb
            },
            {
                path: 'xq',
                component: xq
            },
            {
                path: 'homelist',
                component: Homelist
            },
        ]
    },
    { path: '/login', component: login },

]

export const router = createRouter({
    history: createWebHistory(),
    routes,
})